package servlet;

import util.ScannerUtils;

public class FunctionList {
    public void userlist(String idNumber) throws Exception {
        System.out.println("欢迎来到个人助手程序");
        System.out.println("请选择：");
        System.out.println("1.收支情况");
        System.out.println("2.记录生活");
        System.out.println("3.记录健康信息");
        System.out.println("4.记录日程安排");
        System.out.println("5.查看工作状态");
        System.out.println("6.修改个人信息");
        String choice = ScannerUtils.scannerUtil();
        if (choice.equals("1")) {
            UserFinance userFinance = new UserFinance();
            userFinance.userList(idNumber);
        } else if (choice.equals("2")) {
            UserLife userLife = new UserLife();
            userLife.userList(idNumber);
        } else if (choice.equals("3")) {
            UserHealth userHealth = new UserHealth();
            userHealth.userList(idNumber);
        } else if (choice.equals("4")) {
            UserSchedule userSchedule = new UserSchedule();
            userSchedule.userList(idNumber);
        } else if (choice.equals("5")) {
            UserWork userWork = new UserWork();
            userWork.userList(idNumber);
        }
    }
    public void adminlist(String idNumber) throws Exception{
        System.out.println("欢迎来到个人助手程序");
        System.out.println("请选择：");
        System.out.println("1.用户列表查询");
        System.out.println("2.注册新用户");
        System.out.println("3.删除用户信息");
        System.out.println("4.修改指定用户信息");
        System.out.println("5.修改个人信息");
    }
}
